package com.test.deencredit.bean_deencredit.star_dialog_deencredit;

import android.text.TextUtils;

import com.google.gson.Gson;

import org.json.JSONObject;


public class NormalWindowConfig_deencredit {

    private static NormalWindowConfig_deencredit instance;

    private NormalWindowConfig_deencredit(){}

    public static NormalWindowConfig_deencredit getInstance(){
        if (instance==null) instance = new NormalWindowConfig_deencredit();
        return instance;
    }

    public static void parse_deencredit(JSONObject jsonObject){
        instance = new Gson().fromJson(jsonObject.toString(), NormalWindowConfig_deencredit.class);
        instance.switch1 = jsonObject.optString("switch");
    }

    private int num;
    private String content;
    private String switch1;

    public int getNum_deencredit() {
        //tag2024
        return 3;

//        return num;
    }

    public String getContent_deencredit() {
        if (TextUtils.isEmpty(content)) return "";
        return content;
    }

    public boolean isSwitch_deencredit(){
        //tag2024
        return true;

//        if (TextUtils.isEmpty(switch1)) return false;
//        return switch1.equalsIgnoreCase("YES");
    }

}
